package com.maxatime.service.impl;

import com.maxatime.dao.StudentGradeRelationMapper;
import com.maxatime.pojo.StudentGradeRelation;
import com.maxatime.service.StudentGradeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mr.Zhao
 * @title: StudentGradeRelationServiceImpl
 * @projectName phoenix
 * @description: TODO
 * @date 2021/8/10 19:34
 */
@Service
public class StudentGradeRelationServiceImpl implements StudentGradeRelationService {
    @Autowired
    private StudentGradeRelationMapper studentGradeRelationMapper;


    @Override
    public StudentGradeRelation selectKey(String studentId) {
        return studentGradeRelationMapper.selectKey(studentId);
    }

    @Override
    public Integer insert(StudentGradeRelation s) {
        return studentGradeRelationMapper.insertSelective(s);
    }

    @Override
    public List<StudentGradeRelation> select(String gradeGradeId) {

        return studentGradeRelationMapper.select(gradeGradeId);
    }

    @Override
    public Integer gradeStuDelete(int studentId) {
        return studentGradeRelationMapper.gradeStuDelete(studentId);

    }


}
